<?php

namespace api\ggz\model;

use think\Model;

class ConfigModel extends Model
{
    /**
     * 模型名称
     * @var string
     */
    protected $name = 'config_set';

    protected $type = [
        'more' => 'array',
    ];

    public function getConfigByNote($note = '')
    {
       return   $this->where('note',$note)->select()->toArray();
    }

    public function getConfigByType($type = ''){
        return   $this->where('type',$type)->select()->toArray();
    }
}